class Innate_Skill_GalacticSpiritGift < Innate_Skill
  def initialize(actor)
    super(actor)
    @name = '银河之灵的恩赐'
    @type = 4
    @description = '回复全体友军的生命值，根据自身生命值等比增加回复量'
    @icon_name = "GalacticSpiritGift"
    @target_mode = 4
  end
  def use
    super
    make_actions
  end
  def make_actions
    action = Action_Bit.new(@actor, 1).set_detail(47).set_block
    action_flow.add_action(action)
    targets = $game_party.all_alive_actors
    value = (@actor.maxhp * 50) / 100
    for item in targets
      action = Action_Bit.new(item, 1).set_detail(17)
      action_flow.add_action(action)
      action = Action_Bit.new(item, 3).set_delay_time(10).set_detail(value)
      action_flow.add_action(action)
    end
  end
  def next_level_description
    return "回复量提升"
  end
end
